execute store result storage dab:system temp.pickup_arrow.index int 1 run scoreboard players add #pickup_arrow.index temp 1
execute unless score #pickup_arrow.index temp matches 9.. run function dab:system/arrow_bundle/storage/pickup_arrow/pickup_loop with storage dab:system temp.pickup_arrow